// 折叠reducer
export const loadingReducer = (prevState = { isLoading: false }, action) => {
  switch (action.type) {
    case "change_loading":
      let newState = { ...prevState };
      newState.isLoading = newState.payload;
      return newState;
    default:
      return prevState;
  }
};
